home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr08 / batsh151.zip / SAMPLE1.BSH < prev    next >
Text File  |  1995-02-09  |  592b  |  33 lines

  1. ; ask and show variables
  2. wait off
  3. label 
  4. icon exclamation
  5. ask $$USER Enter your name please:
  6. if errorlevel 1 set $$USER=Mr.NoName
  7. label %$$USER%
  8. :repeat
  9. ask $PASSWORD Hi %$$USER% Give me your password please (! use a fake one,it will be displayed later):
  10. if errorlevel 2 goto repeat
  11. set PASS=%$PASSWORD%
  12. set $PASSWORD=
  13. ask $PASSWORD Please Confirm:
  14. if %$PASSWORD%==%PASS% goto ok
  15. Icon stop
  16. label Sorry but not OK
  17. wait 3
  18. exit
  19. :ok
  20. label OK
  21. message
  22.  Username: %$$USER%
  23.  Password: %PASS%
  24.  
  25.  DOS environment:
  26.  windir: %WINDIR%
  27.  path:   %PATH%
  28.  temp:   %TEMP%
  29.  
  30. .15
  31.  
  32.  
  33.